#ifndef _PERF_COUNTER_H
#define _PERF_COUNTER_H

#include <stdint.h>

#define PERF_CNT_COMPENSATION_THRESHOLD         16
#define PERF_CNT_DELAY_US_COMPENSATION			90
#define SYSTICK_CLOCK 						    6000000//48000000ul


void delay_us(int32_t nUs);
int64_t get_system_ticks(void);
void user_code_insert_to_systick_handler(void);

#endif
